package com.huawang.mdesign.model.service.model.proto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author cdl
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MessageMappingConfig {

    @Schema(title = "项目id")
    @NotBlank(message = "项目id不能为空.")
    private String projectId;

    @Schema(title = "映射关系")
    @Valid
    private List<MessageMapping> mappings;

}
